package com.suning.sawp.dto.esb;

import java.io.Serializable;

import com.thoughtworks.xstream.annotations.XStreamAlias;

@XStreamAlias("productPriceBean")
public class ProductPriceBean implements Serializable {

    /**
     */
    private static final long serialVersionUID = -1155480694319746530L;

    /***
     *  价格
     */
    @XStreamAlias("price")
    private String price;
    
    @XStreamAlias("productCode")
    private String productCode;
    
    @XStreamAlias("dateStr")
    private String dateStr;
    
    /***
     * 站点ID
     */
    @XStreamAlias("siteId")
    private String siteId;
    
    /**
     * 竞争对手商品类型
     * 0-自营；1-直营
     */
    @XStreamAlias("scFlag")
    private String scFlag;
    
    /**
     * 竞争对手商品当前上下架状态
     * 1-上架
     */
    @XStreamAlias("sellFlag")
    private String sellFlag;
    
    /**
     * 竞争对手商品当前库存状态
     * 1-有库存；0-无库存
     */
    @XStreamAlias("storeFlag")
    private String storeFlag;
    
    /**
     * 竞争对手商品是否促销标记
     * 1：促销，0：不促销
     */
    @XStreamAlias("promotionFlag")
    private String promotionFlag;
    
    @XStreamAlias("productName")
    private String productName;
    
    @XStreamAlias("productUrl")
    private String productUrl;
    
    @XStreamAlias("brandName")
    private String brandName;
    
    @XStreamAlias("shopName")
    private String shopName;

    /**
     * 历史价格数据：时间戳，价格
     * 同一天可能会存在多个价格，取最低的价格；也会存在断层的情况
     * 多个价格以空格隔开
     * <historyPrice>1438337649000,178 1438334649000,178</historyPrice>
     */
    @XStreamAlias("historyPrice")
    private String historyPrice;
    
    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public String getDateStr() {
        return dateStr;
    }

    public void setDateStr(String dateStr) {
        this.dateStr = dateStr;
    }

    public String getSiteId() {
        return siteId;
    }

    public void setSiteId(String siteId) {
        this.siteId = siteId;
    }

    public String getScFlag() {
        return scFlag;
    }

    public void setScFlag(String scFlag) {
        this.scFlag = scFlag;
    }

    public String getSellFlag() {
        return sellFlag;
    }

    public void setSellFlag(String sellFlag) {
        this.sellFlag = sellFlag;
    }

    public String getStoreFlag() {
        return storeFlag;
    }

    public void setStoreFlag(String storeFlag) {
        this.storeFlag = storeFlag;
    }

    public String getPromotionFlag() {
        return promotionFlag;
    }

    public void setPromotionFlag(String promotionFlag) {
        this.promotionFlag = promotionFlag;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductUrl() {
        return productUrl;
    }

    public void setProductUrl(String productUrl) {
        this.productUrl = productUrl;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getHistoryPrice() {
        return historyPrice;
    }

    public void setHistoryPrice(String historyPrice) {
        this.historyPrice = historyPrice;
    }
    
    /**
     * 
     * 相关常量值<br> 
     * 〈功能详细描述〉
     *
     * @author 12061818
     * @see [相关类/方法]（可选）
     * @since [产品/模块版本] （可选）
     */
    public interface Constant {
        /**
         * 自营
         */
        String SELF_SELL = "0";
        /**
         * 第三方商户销售
         */
        String THIRD_SELL = "1";
        /**
         * 上架
         */
        String SELLING = "1";
        /**
         * 有库存
         */
        String IN_STOCK = "1";
        /**
         * 无库存
         */
        String OUT_OF_STOCK = "0";
        /**
         * 促销中
         */
        String IN_PROMOTION = "1";
        /**
         * 非促销
         */
        String NO_PROMOTION = "0";
    }
}
